home *** CD-ROM | disk | FTP | other *** search
Wrap
═══════════════════════════════════════════════════════════════════════════════ CIDBINK v1.1 Copyright (c) 1996 From the RBBS/CDOR Files of By: Daniel T. Drinnon * All Rights Reserved The Cellar Door RBBS/CDOR ═══════════════════════════════════════════════ Sysop: Dan Drinnon Purpose: To extract CID info Home of the CDOR Mods! from your BinkleyTerm log file for use with BBS's that handle CID ═══════════════════════════════════════════════════════════════════════════════ Usage: CIDBINK [ConfigFile] ConfigFile is optional. The default ConfigFile name is CIDBINK.CFG in the current directory. ═══════════════════════════════════════════════════════════════════════════════ Included Files: FILE_ID DIZ description file CIDBINK EXE the program CIDBINK DOC this documentation CIDBINK CFG sample configuration file ═══════════════════════════════════════════════════════════════════════════════ Usage: ══════ CIDBINK will read your BINKLEY.LOG file for the CID strings you set in its configuration file. The LAST CID info it finds in the log file will then be written to an output file you specify (normally a batch-type file) that can execute to set environment variables for use with other programs. The format of the output file is controlled by what you set in the CIDBINK.CFG file. The included CIDBINK.CFG file here will create a file called SETCID.BAT that contains DOS SET commands that can be used by your BBS program's command line. Since I only know of one BBS package (RBBS/CDOR) that handles CID, this program leans towards that end for explaination and usage, however I do believe it could be easily adapted to any other BBS program out there that takes CID info on the command line. Because the CIDBINK execution is a child process of your operating system, it cannot alter the environment to the effect that it will change or create new DOS envirornment variables when it is finished. The technical reason is explained simply that DOS gives a copy of the environment to a program which the program is free to do whatever it wants with, leaving the parent process's environment unaltered. When the child process terminates, it's copy of the environment is discarded and the parent environment is again active. The solution is to have CIDBINK create an output file which you could run after CIDBINK is finished that will do whatever you want at the parent process level. If this doesn't make sense, go to the library and find Ray Duncan's book "Advanced MSDOS Programming". To avoid confusion, here is a general flow of operation in DOS-Speak: 1. BINKLEY.BAT is runs 2. Binkley gets a BBS caller and exits with an errorlevel 3. Binkley gives control to BBSBATCH.BAT 4. BBSBATCH gives control to SPAWNBBS.BAT 5. SPAWNBBS.BAT runs CIDBINK 6. SPAWNBBS.BAT runs SETCID.BAT which was created by CIDBINK 7. SPAWNBBS.BAT runs the BBS 8. goto top, BINKLEY.BAT runs again Here is how it would look in reality AFTER Binkley exits to run BBSBATCH.BAT, with BBSBATCH.BAT running SPAWNBBS.BAT and then SPAWNBBS.BAT running RBBS/CDOR: [BINKLEY.BAT->BBSBATCH.BAT->SPAWNBBS.BAT]: @ECHO OFF C:\BINKLEY\CIDBINK C:\BINKLEY\NODE1\BINKLEY.LOG CALL C:\BINKLEY\NODE1\SETCID.BAT CD\RBBS CALL RBBS.BAT %4 %1 %2 %5 SET CIDNMBR= SET CIDNAME= CD\BINKLEY BINKLEY [RBBS.BAT]: (simplified) @ECHO OFF RBBS-PC.EXE %node% RBBS%node%PC.DEF /T:%1 /B:%2 /C:%3 /R:%4 /I:NAME=%CIDNAME% NMBR=%CIDNMBR% Notes: ══════ 1. To free up DOS environment space, CIDNMBR and CIDNAME are nulled out in the SPAWNBBS.BAT file shown above after they are no longer needed. 2. You should configure your modem to return formated as opposed to raw text output for the CID info for your binkley log. 3. Although everyone has their idea of the best USR V.Everything init string for Binkley, I show mine here only for those who need more information. I know there are other ways to init the modem, but these work for me and like they say, if it ain't broke....: [BINKLEY.CFG portions removed]: NoFilter / ExtBaudRates ModemConnect CONNECT ModemFailure BUSY ModemFailure ERROR ModemFailure NO ANSWER ModemFailure NO CARRIER ModemIncoming NO DIAL TONE ModemFailure OK ModemFailure VOICE ModemIgnore +FDM ModemIgnore RINGING ModemIgnore RING RESPONSE ModemIgnore DIALING ModemIgnore RRING ModemIgnore DIAL TONE ModemRinging RING Port 1 Baud 57600 Carrier 80 TermInit AT&FM1X4Q0V1&A3|~AT&B1&C1&D2&H1|~AT&K3&R2&S1&T5|AT&ZC=+FCLASS=0H1|~ATS0=0S2=255|~ATS7=45S10=20S11=45|~ATS15=72S19=5S38=1|~ATS69=0S70=0#CID=0|~AT&W| Init v^ATZ|ATB0M1&M4X4H0|AT+FCLASS=0|AT#CID=1| Prefix AT+FCLASS=0&K3DT Answer ~~AT+FCLASS=2\.0|~AT+FAA=1+FLI="703 913 5621"+FNR=1,1,1;B0A| Busy AT+FCLASS=0H1| ModemFax +FCO ExtrnMail 99 +FCO DTRHigh LockBaud /Arq AutoBaud I use Binkley's Terminal to actually perform a full initialization instead of using it as an actual terminal program. Binkley's Recent Activity screen will say "No Answer" right after displaying the CID info, however this doesn't seem to have an adverse affect on its operation. This configuration also uses the adaptive answering mode to handle incoming FAX calls. ═══════════════════════════════════════════════════════════════════════════════ Revisions: 03-01-96 Initial Release 03-08-96 Added handling of Unavailable CID Info Fixed up the docs Added short program info display ═══════════════════════════════════════════════════════════════════════════════ DANIEL T. DRINNON IS NOT RESPONSIBLE TO YOU FOR DAMAGES, INCLUDING BUT NOT LIMITED TO, ANY LOST PROFITS, LOST MONIES, OR OTHER SPECIAL, GENERAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) OR ANY OTHER LOSS EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY. ════════════════════════════════════════════════════════════════════════════════ BinkleyTerm is copyright by Bit Bucket Software Co. ════════════════════════════════════════════════════════════════════════════════ Liscense: You are authorized to USE this program for an indefinite period of time without fee. This program may be included on CD-ROM's as part of a collection of files as long as it is included in its entirity. ════════════════════════════════════════════════════════════════════════════════ Dan Drinnon The Cellar Door RBBS/CDOR Download on First Call! 703-913-5621 (V.Everything) 703-913-5624 (14.4) FidoNet: 1:109/331 ════════════════════════════════════════════════════════════════════════════════